import request from '@/util/request'

export function orderAdd(data) {
    return request({
        url: '/order/add',
        method: 'post',
        data: data
    })
}

export function orderPay(id) {
    return request({
        url: '/order/pay',
        method: 'post',
        data: {
            orderId: id
        }
    })
}

export function orderId(id) {
    return request({
        url: '/order/id',
        method: 'get',
        params: {
            id: id
        }
    })
}